package com.changgou.controller;

import com.changgou.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/index")
public class IndexController {

    @Autowired
    private IndexService indexService;

    @RequestMapping("/getIndexJd/{ketwords}")
    public List<?> getIndexJd(@PathVariable("ketwords") String ketword) throws Exception {
        return indexService.parseContent("ketword");
    }
}
